#ifndef __ecap_driver_h
#define __ecap_driver_h

// Included Files
//
#include "driverlib.h"
#include "device.h"
#include "board.h"
#include "user.h"
#include "gpio_driver.h"

typedef struct {
//	volatile uint16_t ecap_fallTime1;
//	volatile uint16_t ecap_risTime1;
//	volatile uint16_t ecap_fallTime2;
//	volatile uint16_t ecap_risTime2;
	volatile uint16_t ecap_lowLevelTime;
	volatile uint16_t ecap_highLevelTime;
	float ecap_dutyCycle;
}ecap_data_T;

void USER_InitECAP(void);
float get_ecapDutyCycle(void);
__interrupt void ecap1ISR(void);

#endif
